package com.hgw.Demo07_ObserverPattern.Exercises22_9_4;

/**
 * Data time:2021/12/19 17:37
 * StudentID:2019112118
 * Author:hgw
 * Description: 客户端测试类
 */
public class Client {
    public static void main(String[] args) {
        // 创建Cat类
        Cat cat = new Cat("汤姆");
        // 创建老鼠类
        Mouse mouse = new Mouse();
        // 创建主任
        Master master = new Master();

        cat.addObserver(mouse);
        cat.addObserver(master);

        cat.call();
    }
}
